package sudokuagentlocal;

import java.io.File;
import java.io.FileWriter;
import java.io.IOException;

import Klassen.SudokuGetter;

public class SudokuGeneratorWeb {

/**
* @param args
* @throws IOException
*/
public static void main(String[] args) throws IOException {
File file = new File("websudokus.txt");
FileWriter fw = new FileWriter(file,true);
int i = 0;
String sudoku = "";
while(i<20000){
    sudoku = SudokuGetter.getSudoku(null);
    System.out.println(sudoku);
fw.append(sudoku);
fw.append(System.getProperty("line.separator"));
System.out.println("New Sudoku " + i);
i++;
}
fw.flush();
fw.close();

}

}